
package jz.extEtl;

public class EtlStatus {

	public static long			dayTime		= 24 * 60 * 60 * 1000;
	
	private static EtlStatus	instance	= new EtlStatus();

	public static EtlStatus getInstance() {
		return instance;
	}

	private int	locked;

	public void doLock() {
		synchronized (this) {
			locked++;
		}
	}

	public void unLock() {
		synchronized (this) {
			locked--;
		}
	}

	public boolean isLock() {
		synchronized (this) {
			return locked > 0;
		}
	}

}
